package cn.kent.rest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Map;

/**
 * 模板测试
 *
 * @author kent
 * @date 2021/5/28 12:05
 */
@Controller
public class TemplateController {
    /**
     * 返回html模板
     */
    @RequestMapping("/helloThymeleaf")
    public String helloHtml(Map<String, Object> map) {
        map.put("hello", "from TemplateController.helloThymeleaf");
        return "/helloThymeleaf";
    }
}
